package com.HeadlineSystem.service.impl;

import org.apache.ibatis.session.SqlSession;

import com.HeadlineSystem.dao.UserinfoMapper;
import com.HeadlineSystem.pojo.Userinfo;
import com.HeadlineSystem.service.UserInfoService;
import com.HeadlineSystem.util.SessionUtil;

public class UserInfoServiceImpl implements UserInfoService {
	SqlSession session;
	UserinfoMapper uim;
	SessionUtil su = new SessionUtil();

	public UserInfoServiceImpl() {
		session = su.getSession();
		uim = session.getMapper(UserinfoMapper.class);
	}

	@Override
	public Userinfo findUserLogin(String account, String password) {
		Userinfo ui = uim.findUserLogin(account, password);
		return ui;
	}

}
